package com.tiku.controller;

import com.tiku.common.ResultJson;
import com.tiku.service.UserPayTikuService;
import com.tiku.utils.ThreadLocalUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/TiKu")
@CrossOrigin("*")
public class UserPayTiKuController {

    @Autowired
    private UserPayTikuService userPayTikuService;


    @GetMapping("/selectList")
    public ResultJson selectList(){
        String userId = ThreadLocalUtil.getThreadLocal();
        return userPayTikuService.selectList(userId);
    }
}
